{$taxonomy}_row_actions
Filter HookDescription
Filters the action links displayed for each term in the terms list table. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `category_row_actions` - `post_tag_row_actions`Hook Information
File Location |
wp-admin/includes/class-wp-terms-list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 564 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$actions
|
An array of action links to be displayed. Default 'Edit', 'Quick Edit', 'Delete', and 'View'. |
WP_Term
|
$tag
|
Term object. |
Usage Examples
Basic Usage
<?php
// Hook into {$taxonomy}_row_actions
add_filter('{$taxonomy}_row_actions', 'my_custom_filter', 10, 2);
function my_custom_filter($actions, $tag) {
// Your custom filtering logic here
return $actions;
}
Source Code Context
wp-admin/includes/class-wp-terms-list-table.php:564
- How this hook is used in WordPress core
<?php
559 *
560 * @param string[] $actions An array of action links to be displayed. Default
561 * 'Edit', 'Quick Edit', 'Delete', and 'View'.
562 * @param WP_Term $tag Term object.
563 */
564 $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );
565
566 return $this->row_actions( $actions );
567 }
568
569 /**
PHP Documentation
<?php
/**
* Filters the action links displayed for each term in the terms list table.
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
* Possible hook names include:
*
* - `category_row_actions`
* - `post_tag_row_actions`
*
* @since 3.0.0
*
* @param string[] $actions An array of action links to be displayed. Default
* 'Edit', 'Quick Edit', 'Delete', and 'View'.
* @param WP_Term $tag Term object.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/class-wp-terms-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.